import {
  init,
  classModule,
  propsModule,
  styleModule,
  eventListenersModule,
  h,
} from "snabbdom";

// 创建patch函数
const patch = init([classModule, propsModule, styleModule, eventListenersModule])

const myNode = h("a", {
  props: {
    href: "https://www.baidu.com",
    target: "_blank"
  }
}, "尚硅谷")

const container = document.getElementById("container")
patch(container, myNode)